<?php

class RequestToAgentForm extends BaseForm {
    public function configure() {
        $this->setWidgets(array(
            'name' => new sfWidgetFormInput(array('label' => 'Full Name'), array('placeholder' => 'Full Name')),
            'country' => new sfWidgetFormInput(array(), array('placeholder' => 'Country')),
            'address' => new sfWidgetFormInput(array('label' => 'Address'), array('placeholder' => 'Address')),
            'phone' => new sfWidgetFormInput(array(), array('placeholder' => 'Phone')),
            'email' => new sfWidgetFormInput(array('label' => 'E-mail'), array('placeholder' => 'E-mail')),
            'message' => new sfWidgetFormTextarea(array('label' => 'Message'), array()),
        ));
        
        $this->widgetSchema->setNameFormat('messages[%s]');
    }
}

